local M = {
    -- 变量高亮
    "m-demare/hlargs.nvim",
    event = "BufReadPost",
}

M.config = function()
    require("hlargs").setup {
        color = "#ef9062",
        highlight = {},
        excluded_filetypes = {},
        paint_arg_declarations = true,
        paint_arg_usages = true,
        paint_catch_blocks = {
            declarations = false,
            usages = false,
        },
        extras = {
            named_parameters = false,
            unused_args = false,
        },
        hl_priority = 120,
        excluded_argnames = {
            declarations = {},
            usages = {
                python = { "self", "cls" },
                lua = { "self" },
            },
        },
        performance = {
            parse_delay = 1,
            slow_parse_delay = 50,
            max_iterations = 400,
            max_concurrent_partial_parses = 30,
            debounce = {
                partial_parse = 3,
                partial_insert_mode = 100,
                total_parse = 700,
                slow_parse = 5000,
            },
        },
    }
    -- (You may omit the settings whose defaults you're ok with)
end

return M
